if list does not contain then add c#

73

if list does not contain then add c# -

if (!myList.Contains("name"))
{
    myList.Add("name");
}

Comments

Submit
0 Comments